Page({
  data: {
    template:[]
  },
  onLoad: function (options) {
    this.isFranchiser = options.is_franchiser || false;
    const template = [{
        icon: '/images/online_icon.png',
        name: '价格模板',
        color: 'blue-gradient',
        url: `index?type=2${this.isFranchiser?`&is_franchiser=1`:''}`
      },
      {
        icon: '/images/user_icon.png',
        name: '用户自助充值模板',
        color: 'purple-gradient',
        url: `index?type=1${this.isFranchiser?`&is_franchiser=1`:''}`
      },
      {
        icon: '/images/partner_icon.png',
        name: '代客充值模板',
        color: 'orange-gradient',
        url: `index?type=3${this.isFranchiser?`&is_franchiser=1`:''}`
      }
    ];
    this.setData({
      template
    })
  }


})